// ******************************************************************
// * Copyright(c)  Steven Lu
// * Description   : Schema_PUR_QUOTE_ITEM
// * CreateDate    : 2011/10/25 11:27:58
// * Creater       : CodeSmith
// * LastChangeDate: 2011/10/25 11:27:58
// * LastChanger   : 2011/10/25 11:27:58
// * Version Info  : 1.0 For ESOL
// ******************************************************************

using System;
using System.Collections.Generic;
using System.Text;
using Suzsoft.Smart.EntityCore;

namespace ESOL.Common.Schema
{
  	[Serializable]
    public partial class PurQuoteItemTable : TableInfo
    {
		public const string C_TableName = "PUR_QUOTE_ITEM";
		
		public const string C_QUOTE_ITEM_ID = "QUOTE_ITEM_ID";
		public const string C_QUOTE_ORDER_ID = "QUOTE_ORDER_ID";
		public const string C_PURCHASE_ITEM_ID = "PURCHASE_ITEM_ID";
		public const string C_QTY = "QTY";
		public const string C_PRICE_NO_TAX = "PRICE_NO_TAX";
		public const string C_TAX_RATE = "TAX_RATE";
		public const string C_MAX_PRICE = "MAX_PRICE";
		public const string C_MIN_PRICE = "MIN_PRICE";
		public const string C_REMARK = "REMARK";
		
		public PurQuoteItemTable()
        {
            _tableName = "PUR_QUOTE_ITEM";
        }
		
		protected static PurQuoteItemTable _current;
        public static PurQuoteItemTable Current
        {
            get
            {
                if (_current == null)
                {
                    Initial();
                }
                return _current;
            }
        }
		
		private static void Initial()
        {
            _current = new PurQuoteItemTable();

            _current.Add(C_QUOTE_ITEM_ID, new ColumnInfo(C_QUOTE_ITEM_ID,"QuoteItemId", true, typeof(string)));
            _current.Add(C_QUOTE_ORDER_ID, new ColumnInfo(C_QUOTE_ORDER_ID,"QuoteOrderId", false, typeof(string)));
            _current.Add(C_PURCHASE_ITEM_ID, new ColumnInfo(C_PURCHASE_ITEM_ID,"PurchaseItemId", false, typeof(string)));
            _current.Add(C_QTY, new ColumnInfo(C_QTY,"Qty", false, typeof(decimal)));
            _current.Add(C_PRICE_NO_TAX, new ColumnInfo(C_PRICE_NO_TAX,"PriceNoTax", false, typeof(decimal)));
            _current.Add(C_TAX_RATE, new ColumnInfo(C_TAX_RATE,"TaxRate", false, typeof(decimal)));
            _current.Add(C_MAX_PRICE, new ColumnInfo(C_MAX_PRICE,"MaxPrice", false, typeof(decimal)));
            _current.Add(C_MIN_PRICE, new ColumnInfo(C_MIN_PRICE,"MinPrice", false, typeof(decimal)));
            _current.Add(C_REMARK, new ColumnInfo(C_REMARK,"Remark", false, typeof(string)));
			
		}
		
		public ColumnInfo QUOTE_ITEM_ID
        {
            get { return this[C_QUOTE_ITEM_ID]; }
        }
		
		public ColumnInfo QUOTE_ORDER_ID
        {
            get { return this[C_QUOTE_ORDER_ID]; }
        }
		
		public ColumnInfo PURCHASE_ITEM_ID
        {
            get { return this[C_PURCHASE_ITEM_ID]; }
        }
		
		public ColumnInfo QTY
        {
            get { return this[C_QTY]; }
        }
		
		public ColumnInfo PRICE_NO_TAX
        {
            get { return this[C_PRICE_NO_TAX]; }
        }
		
		public ColumnInfo TAX_RATE
        {
            get { return this[C_TAX_RATE]; }
        }
		
		public ColumnInfo MAX_PRICE
        {
            get { return this[C_MAX_PRICE]; }
        }
		
		public ColumnInfo MIN_PRICE
        {
            get { return this[C_MIN_PRICE]; }
        }
		
		public ColumnInfo REMARK
        {
            get { return this[C_REMARK]; }
        }
		
		
		
	}
}

